package service;

import java.util.ArrayList;
import java.util.List;

public class BigDaddy {
	
	public static boolean started = false;
	public static BigMamaThread bigMum;
	public static List<GetContentThread> listContentThread;
	public static List<GetLanguageThread> listLangThread;

	@SuppressWarnings("deprecation")
	public static void stopAll() {
		bigMum.stop();
		for (GetContentThread contentThread : listContentThread) {
			contentThread.stop();
		}
		for (GetLanguageThread langThread : listLangThread) {
			langThread.stop();
		}
		initAll();	
		started = false;
		System.out.println("Stop all ok !");
	}

	public static void initAll() {		
		bigMum = null;
		listContentThread = new ArrayList<GetContentThread>();
		listLangThread = new ArrayList<GetLanguageThread>();
	}
}
